package com.example.lvsuo.controller;


import com.example.lvsuo.modal.Result;
import com.example.lvsuo.service.IClientService;
import com.example.lvsuo.service.IClientTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 心心念念
 * @since 2021-03-30
 */
@RestController
@RequestMapping("/clientType")
public class ClientTypeController {

    @Autowired
    IClientTypeService cs;

    @GetMapping
    Result queryTypes(){
        return Result.back(cs.list());
    }

}

